package com.generation.tool.pojo.enumeration;

/**
 * 异常枚举类定义业务中已知的异常
 */

public enum ExceptionEnum {
    INVALID_CODE(401, "验证码无效"),
    USERNAME_NOT_EXISTS(402, "用户名不存在");



    private int code;
    private String msg;

    ExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }
    public String getMsg() {
        return this.msg;
    }

}
